<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <script language="javascript" type="text/javascript" src="My97DatePicker/WdatePicker.js"></script>
<link rel="stylesheet" type="text/css" href="css/style.css" />
    <title>My JSP 'cjgzrs.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<script>
	function yz(){
		var startDate=document.getElementById("startDate").value;
		var endDate=document.getElementById("endDate").value;
		
		if(startDate==""||endDate=="")
		{
		alert("请选择时间");
		return false;
		}else{
		return true;
		}
	}
</script>
</head>

<body>
<form id="form1" name="form1" method="post" action="cjgzrs.do" onsubmit="return yz();">
<input type="hidden" value="" name="falg" id="falg"/>
<input type="hidden" value="<%=request.getParameter("sname") %>" name="sname" id="sname"  > 
  参加工作时间：
  <input type="text" name="startDate" id="startDate"  class="SmallInput" onFocus="WdatePicker()" />
 至 
 <input type="text" name="endDate" id="endDate"  class="SmallInput" onFocus="WdatePicker()" />
 <input type="submit" name="button" id="button" value="查看统计表"  onclick="document.getElementById('falg').value='';"/>
 <input type="submit" name="button2" id="button2" value="查看统计图"  onclick="document.getElementById('falg').value=1;"/>
</form>
</body>
</html>
